package com.dzqc.fly.exception;

import lombok.Data;

/**
 * 描述：异常统一处理类
 * author:tonghl
 * Date：2022年6月28日
 */
@Data
public class flyException extends RuntimeException {
    private String msg;
    private int code = 500;

    public flyException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public flyException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }

    public flyException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public flyException(String msg, int code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code = code;
    }

}
